<?php


use think\facade\Route;


Route::group("v1", function () {
    Route::post('getOpenid', "User/getOpenid");


    Route::get("list", 'article/list');
    Route::get("cateList", 'article/cateList');
    Route::get("detail/:id", 'article/detail');

    Route::group(function () {
        Route::post("updateAuthMessage", 'user/updateAuthMessage');
        Route::post("updateLocationMessage", 'user/updateLocationMessage');
        Route::get("like", 'article/like');
        Route::post("comment", 'article/comment');
    })->middleware(\app\month\middleware\Check::class);
})->middleware(\think\middleware\Throttle::class);
